home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / repair / object.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  2KB  |  50 lines

  1. /* Copyright 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
  2.    reiser4progs/COPYING.
  3.    
  4.    repair/object.h -- common structures and methods for object recovery. */
  5.  
  6. #ifndef REPAIR_OBJECT_H
  7. #define REPAIR_OBJECT_H
  8.  
  9. #include <repair/repair.h>
  10.  
  11. typedef enum repair_object_flag {
  12.     OF_CHECKED    = 0x0,
  13.     OF_ATTACHED     = 0x1,
  14.     OF_TRAVERSED     = 0x2,
  15.     OF_ATTACHING     = 0x3,
  16.     OF_LAST
  17. } repair_object_flag_t;
  18.  
  19. extern errno_t repair_object_check_struct(reiser4_object_t *object,
  20.                       place_func_t place_func,
  21.                       uint8_t mode, void *data);
  22.  
  23. extern reiser4_object_t *repair_object_obtain(reiser4_tree_t *tree,
  24.                           reiser4_object_t *parent,
  25.                           reiser4_key_t *key);
  26.  
  27. extern reiser4_object_t *repair_object_open(reiser4_tree_t *tree,
  28.                         reiser4_object_t *parent,
  29.                         reiser4_place_t *place);
  30.  
  31. extern errno_t repair_object_check_attach(reiser4_object_t *object, 
  32.                       reiser4_object_t *parent, 
  33.                       place_func_t place_func,
  34.                       void *data, uint8_t mode);
  35.  
  36. extern reiser4_object_t *repair_object_fake(reiser4_tree_t *tree, 
  37.                         reiser4_object_t *parent,
  38.                         reiser4_key_t *key,
  39.                         reiser4_plug_t *plug);
  40.  
  41. extern errno_t repair_object_mark(reiser4_object_t *object, uint16_t flag);
  42. extern errno_t repair_object_clear(reiser4_object_t *object, uint16_t flag);
  43. extern int repair_object_test(reiser4_object_t *object, uint16_t flag);
  44. extern errno_t repair_object_refresh(reiser4_object_t *object);
  45.  
  46. extern void repair_object_print(reiser4_object_t *object,
  47.                 aal_stream_t *stream);
  48.  
  49. #endif
  50.